/*
 * Brown, Gregory; Negron, Luz; Noecker, David; Spangler, Michael
 * Pennsylvania State University
 * 2011
 *
 * Copyright (c) 2011, Brown Negron Noecker Spangler
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * - Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 * - Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 * - Neither the name of Pennsylvania State University nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * Date class for use in IST 411 project
 */

package courseScheduler;

/**
 *
 * @author David Noecker
 */
public class date {

    /**
     * Constructor for date class, takes in a string for the month and two
     * integers; year and day
     * @param newMonth value for the month
     * @param newYear value for the year
     * @param newDay value for the day
     */
    public date(String newMonth, int newYear, int newDay){
        month = newMonth;
        year = newYear;
        day = newDay;
    }

    /**
     * Constructor for date class, takes in an already existing date and produces
     * a new date.
     * @param rhs existing date
     */
    public date(date rhs){
        month = rhs.month;
        year = rhs.year;
        day = rhs.day;
    }

    //Class attributes
    private String month;
    private int year;
    private int day;

    //sets and gets
    //<editor-fold>
    /**
     * Class method for setting the value of the month.
     * @param newMonth new value for the month.
     */
    public void setMonth(String newMonth){
        month = newMonth;
    }

    /**
     * Class method that accesses the value of the month.
     * @return Month.
     */
    public String getMonth(){
        return month;
    }

    /**
     * Class method for setting the value of the year.
     * @param newYear new value for the year.
     */
    public void setYear(int newYear){
        year = newYear;
    }

    /**
     * Class method for accessing the value of the year.
     * @return Year.
     */
    public int getYear(){
        return year;
    }

    /**
     * Class method for setting the value of the day.
     * @param newDay new value for the day.
     */
    public void setDay(int newDay){
        day = newDay;
    }

    /**
     * Class method for accessing the value of the day.
     * @return Day.
     */
    public int getDay(){
        return day;
    }
    //</editor-fold>
}
